Revised factory pattern
Increased header size to 2 bytes, allowing messages up to 1496 bytes