Finally! Debugged.