Merge rewrite that makes it possible to have subplots.