First and foremost, this file needs to be linted and corrected for formatting, indentation, etc.