Implemented layout.