Make sure opts is not undeinfed