Refactor

- Inspect paths to see which launch action to take for a file.
- Refactor