Updated the algo
Merge branch 'master' of https://github.com/rjoleary/wpc