Modification of crab cavities attribute handling. Testing the code