Debugged. No memory leak this time. Finally could start on normalization now.