Fixing algo and generation modes