Heavily important code optimisations