Minor bugfix and new copyflag column