Better URL param extraction