Instead of doing blood_oxygen - amount repeatedly, move these to the end of the method and just use the current value of the attribute.