Added toByteArray() method to Watcher.