Changed signature of the cipher method