Added option to pass OTP length

ref #12