Added the custom flag to the mode