Spare a little bit more memory by storing layers as tuples
Revert tuple changes and derive Layer from list