Add functionality for referencing and dereferencing.