Added in simple debug logging for demo purposes