Added the first bits of code.