Added check if submission was done