Updated grid class.