Put byteMultiply into a function