Added functions for annotation work