Implemented rcon function