Implement ctw
half fix ctw