Accounted for NULL in put; Tested mm against malloc