Use unique_function in actions (attempt)