JQ-Avgrund based on the work by HAKIM EL HATTAB