First working version with helper scripts.