Original callback was ill-conceived. Updated to something more sensible. Use set_callback now.