Updated fancy malloc functions a bit.