Add overlay generation functionality.