Finally added key management and layer editing.