Can we do this with constants versus "magic numbers" like 0xFF? same goes for line 1069...