Switched wx from infinite loop to cronjob (single run)