Edit: think we don't need funcLeave (?