Some old code hacked into something useless-ish