Made it actually work (AND I ACTUALLY GET CREDIT THIS TIME)