Filling up references file