Changed onTypingStart to scope function.