Debugging submit script