Implement protection of stack variables