Subroutine API updated