Refactoring of main workflow
Move artifact to own file
Move artifact to own file
Add stream implementation (untested)