Implemented endpoint for processReturn. Added function to process a list
of returns in the interface and implemented in both Impl and Mock.