Changed API to use []byte instead of string to represent messages