for as long as possible. four months? I don't really remember but I kept doing it until DD could wriggle her way out, then I started wrapping her with her arms out.

She loved it though and was the only way she could sleep.