Converted delete statements for performance.