Added stress tests and fixed iterator issues.