Changed variable names to standard and formatted the code.