Added extra functionality to locking iterator