Closing the loop around neural systems