Changing all occurrences of 'instance' to 'listener' to keep terminology consistent