Submit functionality nearly finalized