Using factories for Debug.

Signed-off-by: Brian Bommarito <brian@bbommarito.com>