Commenting out alerts somehow breaks it...ok