Example pattern with debug