Preparing code
Optimisations.