Linked mode setup to number of modes.