Removed old files. Added submit function and additional logic.