Need for speed: Code optimisation!