Added checks to verify that some settings weren't already present to prevent redundant configuration tasks.