Added encoder kernel module