Added code to enable submitting to portal