Add check for dependencies