Now accepts one reference per line