Add stream reader and move byte array comparison