Safe model creating

This solves creating models with constructors with required attibutes.