Adding profiling to form submission processing