Changed indentation and removed alerts.