Added duplicate route/bus prevention mechanism.