Working version (sans IRC).