Move these methods to the base class so they can be used elsewhere