Formatted code to use AStyle