Implemented relation stuff to the model command