Changing function to just create flag.