Fixing greedy pete