Work in progress to allow > 52 toggle states.