Some initial work on getting the single AP threshold code working ...