WIP. Form mostly working.