Implemented tag and tag tests in the offline engine