Now correctly functioning serial test