Finish the function in tags.