Begin handling dependencies. Will need some rework.