Added blacklist functionality and random ID generation