Final touches to the code.