Got working with pgi.