Debugged and fixed.