Performance optimisations.