Grabbing command input and storing them in the correct variables.