Fixing pooled code