Filling up template