Added features to send serial data from Java