Added devMode bool for easier testing