no longer need to use Value() and Array(). Made some smarter handling.