Added a check for dependencies