Prettied up the code.