Corrected a stupid mistake
Can now request distinct values from data for type

With start and stop times if required