Changed to byte encoding rather than int