Fixed procedure XML to properly handle conditionals