Added input listener