Added generating rare event for random period of time.