Made Q_update use sufficient statistics