COGLEY: Working very non general version of gibbs stuff.