Replaced snackers with alerts, cleaned up code