Added Matt's serial increment code to increase compatibility with later firmwares.