Added to library function to check endianess