Getting a code.
How it works