Added some bits of code.