Alter production connection code