Attached a patch on top of master that replaces the profile parameter with the release flag.