Added support for Generic Relations.