Base version of script