#76 Changes to support RESTful API