Some helper API methods.