Write out first position
Turn on optimisation