Configure main script