Work out shim locating and dependency checking.