NOT WORKING! Creating sub-entities but relations are now bugging.