Added support for more request methods.