Integrated the working rcon logic.