Add methods to set maxgrids and maxplayingtime