Added inverse flag.