Changed defining named constants to be optional if config are not set to allow setting manually