Updated on and listen functions.