Change BankMode to Enum for both client and server