Migrating to shell scripts