Added a select listener.