Add common code needed in subclasses to base class