Added inserting from failed log