Remove templete code and add SNK code