Added ability to get the entity referenced with a lookup field.