WIP testing algorithm