More restructuring for clarity
Added disclaimer to top of file