Use template and runnable