New script for machine agent