Added first event listner that calculates the time needed to have routing.