Stuff for the programming competition.