Added some variables/calculations for the conditional statement to use.