Improved ride command
Added command_leave flag