Using from instead of current_revision. Making 'f' variable more verbose. Changing 'r' local variable to safe_revision.