Added hm and ho relation handling to model files