Junction Crossing function