Add parameter checks, fix ddd launching for core files.