Modify order of installing applications.
Fix error handling.
Fix printf format.