Fixed bug: NullReferenceException

We have to find out why UnitMask is 0 in the first place
Added Log: CommandLine