Changed setTinterval to SetTimeout in busGenerator