Remove the resetNextAction method and use more advanced machinery for the same purpose.