Phrase and frame creation works now. No leaks.