Changed API function calls