Added API for function calls