Adding switch attributes