Updating submission logic to allow random input on activity flag