changed timeout to 1ms and keylength to 20 bytes