Implemented dependency resolving.