Example of using the so-called ‘idle task approach’ to rename the layer right after document creation