Draft version of filename generation method.