Subscribe template and logic