API updated with new method