Fixed memory allocation issues. Clean and working build