Added function for mouse position.