Added pathway connections code