Fixed default template format() function
Added search!