Cleaned up the c task generation.