Protecting functions over stroke