Added check to no republish the same application twice