For now i stole this from twelveman (but hopfully one day it will look neato).