This works yay. Put ugly stuff in sub. Later put all subs in external source files. Even later create a new git repo.