Changed transition each to wrapper counter function to avoid multiple triggers of the same call -- See comment