Added main request handler