Able to distinguish between scaling and rotation layers. Need to fix scaling layer.