Refactored Config and fixed onblockActivated