Should the mode you have passed as an argument be used here instead?