Small code optimisations to make my life better.