Added debug flag as initializer option in addition to environment var