Added model auto delivery code.