Setting pid env variable