Added enum for querytypes.