Updating APIFunctions.java