Add limit to join
Fix auto flag from file.
Add add_flags and add_flags_file
WIP:Debug add_flags