Mosaic display now working for arbitrary numbers of variables