Add mid-tick callback.