Can now input into middle of command. No longer seg faults with no command