Moving byte-read function up