Modified simulink model