Add option to provide iv