Debugged update functionality.