Made something that works but randomly