Update registration script to attempt to avoid program halts