Introduce callback, $storing, have_stored_data, error, ... Full example