Got 6 kinds of nasty all up in this code