Adding some functions for handling annotations.