Added code for mouse Log.