Added methods for optional arguments of the api.