Change to capture at mouse click.
Convertin into a Maven project.