Add send_packages function