Implemented layout manager.