setDevMode method added.