Fix log param.
Fix error handling function.
Fix logic, the return structure is not what I imagined.
Fix version get function.
Fix logic error.