Code updated to change interval.