Added colour and vector maths functions.