Added shared API for functions