Danny was waiting for his friends to get home from school.
His friends had come to the house, but he slept through their knocks.
While waiting for them, he sat on the doorstep.
While waiting for them, he fell asleep.