Adds back stylesheet detection