Number of cells/rectangles can now be specified via command line.