Resolve references