Checking depenencies and installing if not installed.