Added DOM clearance function.