Minimal explanation of the code.