Added block to handle user interaction changes.