Renamed api to be more intuitive