Updated for ANTS and BBreg toggling.