Added manual memory management and ARC