Add metadata function for service register