Pennsylvania and Virginia have entered into a new agreement allowing concealed carry permit holders from each state to legally carry handguns across state lines, officials announced Wednesday.

Pennsylvania Attorney General Dave Sunday and Virginia Attorney General Jason Miyares finalized the reciprocity agreement, making Virginia the 30th state to recognize Pennsylvania’s concealed carry permits.

“Shortly after taking office, I directed a review of our reciprocity agreements to ensure they protect both legal rights and public safety,” said AG Sunday. “We found no legal barriers between our states that would prevent this agreement.”

Under the agreement, permit holders must be at least 21, carry photo ID, present their permit when requested by law enforcement, and must not have had a permit revoked.

The agreement applies only to handguns and follows months of coordination between Pennsylvania legal staff and Virginia State Police.