Added options for multidetect function