Automatically index components