Added functions for adding metadata.