Working on the logging portion. Haivng trouble.