Corrected bug where procedures were being skipped.