Finally functional mouseListener.