Make work with Uint8Array as input param