Added option to return array with only hex values