Wrote logosol_rw method to handle the full process for each command sent.