Added more functionality to the form.