Loading and processing code ONLY - rest to follow