Updating middle layer code / adding reference data script