Modify some big function