Rebuild controller structure.