Added method to form.