Prepared for an updateLayer function.