Added basic version checking and security measures.