Pass chain_id to user-specified initial values function