Fix helper machine script: remove obsolete code, add user condition checking