Fixed the listener. It now takes the SID name as a parameter