Add functions for interaction with the reference