Bsongis/issue552 checkbox for reset custom function

Flash on stock needs to be fixed before merging this one to next