Added check to not run code if too many commands inserted