Add functionality and fix issues in the DSA wrapper.