Added a function to call listener for all already attached devices