Got rid of <regex> and added sleep().