Modify layout according to specifications.