Converted history to callbacks