Changed som logic in successAction