Added bits of code.