Adding template method pattern.