Reformat register_local()