Added alert functionality once more