Added a setter in DevMode (mainly for unit testing)