Now checking for dependencies before using them