Script to auto config