Converted guns to use ids.