Added GridController class.