Dictionary.com
Thesaurus.com
had been loitering
  • past perfect progressive of loiter.