Updated SystemScript and added check for datatype check