Use opt_prefix instead of constructing it manually