Refactored RexConnect module.