Added three new method to deal with references which were useful to deal with detached objects.