Debugged problem