Implemented updating competition.
Removed some unused code.