Added debug mode

When debug mode is enabled, check update handler will be always called.