Add party prototype.
Tidy code.