Edited the main script to debug issues with SV options
adding to the lastest version