Resolve dependencies later.
Added a 'resolve' function.