Some updates to user script

I need to add in rotation support and then make these changes on
selection only file (or make that an argument to this.