Add boolean generated attribute.