Setting attributes now works correctly.