Trying to make my code suck less a little bit every day. :-)