Added request handling functionality