Added access to settings object in callbacks.