User helper function