Used Listener class to create URemoteListener and consoleListener