Protect blocks execution properly.