Extract main code to fc_main and fix gc-many-clicking