Added a getRelative method.