Add context information to call back function.