Finally figured out the way to grab the input