Re implemented the SMS server in java