Update logic added