Changed endianess of the function.