Added hex encoding