Added check for existing stylesheet.