Changed CPA script to a new environment