Added reset and completed multi-layer functions