Added optional arguments to the REST calls.