Added API key checking and archive scanning