Removing debug code (alerts)