Updated to use Pastebin

Untested, written on the fly.