Custom submit script with resources