Began working on some linear and fixed the layer generation.