Trying a different way to apply momentum based update for NAG.