Removed dependencies of gridthread to base class.