Added auto calculating cell size.