Logging was only my secondary objective. Primarily I'm trying to keep it from crashing.