Made byteArray protected so that subclasses can reach it