Made function API prettier