Addded iterator functionality