Working with static and templates