Add check for dependencies.