Removing annoying warning messages