Removed usage of deprecated methods assign and assignRef