Change API to function per level