Updated src files with template method.