Learning from Past Mistakes