Removed alerts and console logging