Reset successes to ensure all three requirements satisfied

Not sure if this is correct, but it seems to work this way.

Also fixed encoding.