Works for fixed iterations