Just remembered the problem of the looping buses. Modified code to allow detection of returning bus by applying different service indentifier