Implemented generic layouts.