Added mouse-related functionality to NN