Added listening functionality