First attempt at formatting the code.