Add initModel call to constructor since it requires the type to be set beforehand