Making some changes to the api wrapper and the restless wrapper.