Added version checks to prevent errors. This commit
will be replaced with requirements.txt for pip install