Cleaned up code such as variable names and unnecessary echo statements.