Updated to use new version of byte_array