Fixed bugs that prevented query execution after IO tasks update.
Deleted junk code.