Passed the world object as a parameter to call back function