It's a little nasty, haven't cleaned it up at all(just threw it together) but it works!
Let me know if you find anything wrong..