Adapted controller to structure.