Implemented simpler ways to update refs