Added back accidentally removed utility function