Implemented basic close mechanism