Playing with template
Added some check on param input.