Documented code, consolidated helper