Code refactoring. EJS usage.