added missing return statement to ProcessCommand