Added uility function