Recording thoughts and acting on ndarray