Added relation support
Merge branch 'master' into gh-pages