Critical currents in superconductors