Added callback registration to timer. Removed some debug prints.