Add debug feature