Added stage definition to algorithm statement.