Function deriveOptions