Added logging to parser