Updates layers