Added loadAPI for functions