Reducing planned and unplanned downtime