Re-formatted code to make it look neater.