Queries logging working... Now fixing log.