Prevents silent overwrite of layers. Fixes #4