Code

merged patch #1447043 from Andrius "knutux" R. to create sub-layers