Added dereference() and testing