Adding my own credit.
Require network activation
Fixes possible whitespace issues
Adds support for a pre-defined limit, rather than having an option
Fixes incorrect use of $wpdb
Tidying up, matching WordPress styleguide