Added functionality to retrieve upstream region to last gene for both forward and reverse sequences.