Added lcs.engine, support for layers