Fix: When fileopt is supplied, use it