PI: Integrated with Env Detection(Before tetsting)