Improved command processing
Basic run loop