Added additional check for highway in Q1;

Added check for valid highway in Q1;
Now logs query for debugging;