Can you rename "base" into "toBase" and "derived" into "fromDerived" everywhere? Else it's not clear whether the offset is from derived to base or from base to derived...