Allow for multiple loops over candidates
Cleaned up commented out code