Added some debugging statements and changed update_cbs function to make scheduler run