Automatically attach dependencies of module