Just saving some non-working code
Finally something that works. I have no idea why it didn't work before though