Added in raw code function

Potential replacement for basefile function