Added clearEngine