Removed magic 2 and replaced it with sizeof(int16_t) for consistency.