Implement reference derivation