Basic chaining functionality tested and working.

More tests required and probably some more syntactical sugar too.