Moved references around to get them to process