Added functionality to prototype M:1 relationships.