Saved code after adding user associations