Added newDocRoot variable for readability and maintainability