Added support for "id" and GET/POST params