Use Q instead of when.