Added some new API methods and modified the service method.