Instantiation of Rupert appears outside of the listener function