Added support and usage for maintaining the parent of a model.

Signed-off-by: Jakob Brandsborg Ehmsen <jakobehmsen.github@gmail.com>