Added passthroughs and small fix for malloc/free