Refactor the code to introduce a small FsManager
Add support for action, update template name