Implemented malformed query data log to solve issue #2