Copying with 3 flags developed and tested by hands.