Adding global callbacks

Change-Id: Ibdafcb1072217a5dec36d6125a616185b1f03a78