Most perceptual tasks require sequential steps to be carried out. This must be the case, for example, when subjects discriminate the difference in frequency between two mechanical vibrations applied sequentially to their fingertips. This perceptual task can be understood as a chain of neural operations: encoding the two consecutive stimulus frequencies, maintaining the first stimulus in working memory, comparing the second stimulus to the memory trace left by the first stimulus, and communicating the result of the comparison to the motor apparatus. The divisions between these steps may be artificial, but breaking the problem into pieces is helpful. Here I discuss several such pieces, although, in the long run, I aim for an integrated understanding of the perceptual processes, at least to the extent possible within the minimalist environment of a laboratory task. Romo, R. & Salinas, E. Nat. Rev. Neurosci. 4, 203 (2003). Romo, R., Hernández, A., Zainos, A. & Salinas, E. Nature 392, 387 (1998). Romo, R., et al. Neuron 26, 273 (2000). Hernández, A., Zainos, A. & Romo, R. (2000) PNAS 97, 6791 (2000). Luna, R., Hernández, A., Brody, C. D. & Romo, R. Nat. Neurosci. 8, 1210 (2005). Romo, R., Brody, C. D., Hernández, A. & Lemus, L. Nature 399, 470 (1999). Brody, C. D., Hernández, A., Zainos, A. & Romo, R. Cereb. Cortex 13, 1196 (2003. Romo, R., et al. Nat. Neurosci. 5, 1217 (2002) Hernández, A., Zainos, A. & Romo, R. Neuron 33, 959 (2002). Romo, R., Hernández, A. & Zainos, A. Neuron 41, 165 (2004). Lemus, et al. PNAS 104, 17174 (2007).