Added additional input value to save photo name and working listening event