Okay I eventually figured out that you can use logic gates on the output to only let items in when theres room.