ATFC Algorithm - almost there