Changed relation to other classes to IDs.