Support variable levels of overrides

This copies work done by some one else (unknown) who copied this
gem into a private repo and modified the code there.