Shitty buggy code, kinda works