Flux Pinning in Type II Superconductors