Replaced some tabs with spaces.
Added notification hook.