Made methods public so they can be accessed through an Action Listener.