This paper also addresses the interplay between cortex and thalamus:
Pro tip - kind of a hard read, but well worth the effort!