Added case-insensitive switch to Ag