Add install-missing-packages function and required-packages list.