Improve karma parsing