Finished implemented TokenFileFactory.