Removed read_line function and started the state machine in the read_command function