Run dependency task in an orderly manner.
Merge pull request #9 from sunglim/fix_dependency

Run dependency task in an orderly manner.