Added util for malloc