Add template method pattern.