Reverted files back to previous working state. task_type is once again an integer