Added option for key to use for decoded data