Added callbacks for commit activity