Renamed log variables.
Changed how delay is accomplished.