Made the request processing based on the state monad