Added implementation of xtu16 function.
TODO: Three function for the same thing. Fix it!