Debugged and tested. All works.