Added scrollToBottom function.