Changing flag to 1