Remove redundent sort script
Implemented conditionals to stop on error