Added dimensions parameter to Base class.