Added comments and change kernel to worker