Corrected functions to retrieve upstream sequences
Changed style