Tidied code. Corrected styling.