Added getNextScope