Merged 3 into the big files. Got reusable code outside again.