Fixed memory issue. Transp values need all layers not just Transp layers. Fixed array size.