Better resizing and failsafe with Layers.