Model initialization logic