Changed  for  in order to prevent possible ' already in progress' errors