Removed unused var ref