Implemented DSA main application