Adding get_metadata functionality.