Is it not possible to utilize the attributes? I would think it to be more elegant than the manual switch here.