Formatted Code/Removed Rubbish