Fixed api methods.