The final baseline code.