Playing around with the layer code to try to get it to wokr