Removed local processRequest method and change reference to global