Changed to use SVG for compartments