Fixed #9: Refactored code to adhere to the various PHP standards.