mode is an optional argument; if nothing's passed in for mode, the mode simply remains unchanged—I can make that clearer in the comments, though