Add processRequest method