Updating refs now works