Broken ass code. Don't use me :D