Added functionality to the forms.