Added logs when listener function can't be looked up. Relates to #3.