Removed BasicMain's dependance on named layers in favour of dynamic layers.