Separate main script from config