Writing new layer