DEV: In relation to ticket #306 local variables for the vertical layers have been replaced by the appropiate globel variables for the vertical layering