Basic structure for require, plus some renaming
Now running inside require