Removed delete parts and timer, not used anymore as the script hasn't been updated for pdo.