The mode flag should now function as intended