Add support for get and post callback