Made the pry stack navigator more intelligent.