Added qEngine code