Better way of doing wildcards