Added $ in loops