Exploring Cognition with Brain-Machine Interfaces.