Changed API parameter type to Object.