Added a simple function to record time hovering over certain elements