Removed unneeded local hex function.