Added support for providing custom server.