Is there a reason to explicitly set the mode here? If so, it would be good to add a comment explaining why.