Added direction to relationship queries to reduce ambiguity.  Fixed NPE with Pull.