Used ByteArrays to parse the timestamp. Changed DEVICE variable from int to byte.