Implemented core layout engine