Analysis of Voluntary Behavior to Interrogate Neural Function