Initial load of middle layer code