Removed debug code which prevented offline export working.