Functioning code before data tagging