Added active record assignment