Task state callbacks now working for scans