Removed calls to printf(), since printf() calls malloc()