Define mode as int