Added api methods.