duration IF added

It was corrected in a way that allows you to specify the duration.
it was fixed to 0.2 default duration.