Runtime wiring now follows static type checking. Fixed problem with undeclared identifier in the stubs.