Added F5 to reader stack and made State case class to keep track of iteration with parameters.