Updated handle_request with command checks - added info dict