Made some changes to the REST-interface.