Add prefix functionality to Q