Add optional handler function to provide additional info.