Membrane stripping.

At how many weeks is this usually done and what is the purpose of it?