Added option "output" to method "enc"