Working version of Pig