Create index on foreground.