First loop attempt