I have no idea what I did here, too long ago :s