Modify play template and logic