Refactored black and white lists support in plugin manager.