Skip events not handled by event handlers
Split config functions to config.c