Change sor call from main.c

Added Flag as argument.