Quotes and getRootNodes optimized