Update

Slight update to refValue function and insert function