Added alerts for debugging.