Restored to taking byte array