Add engine loop