Got the state machine of the TimeLine IO coded.