Pipes working, needs a bit of cleaning up though.