Cleans up the annotations functions.