Shitty code, have to fix it.