Source code from Form Type. Uses MIT License.