Changed the call to the callback code so that the settings object is the object on which the method is being invoked (in other words settings becomes this inside the callback)