Updated core thread functions to add history and sync push