Implemented Fmt and fixed Doublets(mem leak).