Adding a function to get []byte from KT