Documented prepareModel