Added interface to allow custom proxy adapter.