Max depth incorporated
Added script files