Added offset to template