Finished implementing the chainer...