Refactor method for read kernel