Timing and type detection