My crappy code