Do not sort the layers
Use tempfile instead of relayering STDOUT