Formatted and cleaned code.