Need to check for tags in correct order