This code looks pretty skeevy.