Can we do this bit with smarty too?