Updated

Long lines of cars and people formed Wednesday to take advantage of a guns-for-groceries exchange program that was moved up in the wake of the Connecticut school shooting.

Police officers filled bins with a variety of rifles and handguns outside the Los Angeles Memorial Sports Arena and the Van Nuys Masonic Temple.

Officials were mindful of both the massacre of students and teachers in Newtown, Conn., and a gunman's ambush that killed two firefighters in Webster, N.Y.

"All of us are still mourning the tragedy at Newtown, Conn.," said Mayor Antonio Villaraigosa. "So many young innocent children were mass-murdered in the way that they were, and now the assassination of two firefighters ... just breaks the heart of so many of us, particularly in this holiday season."

The anonymous buyback program allowed weapons to be turned in with no questions asked. Handguns, rifles and shotguns could be exchanged for $100 Ralphs grocery store gift cards. Assault weapons earned a $200 card.

The program, designed to get guns off the streets, usually is held in May. Villaraigosa decided to do it now in the wake of the Dec. 14 shooting rampage at Sandy Hook Elementary School.

The last buyback netted about 1,700 guns.