Add documentlaunchmode, but doesn't seem to work properly?